package com.zxw.flow.api;

import com.zxw.common.core.base.res.BasePageRes;
import com.zxw.common.core.base.res.BaseRes;
import com.zxw.flow.domain.entity.FlowNodesRelationModel;
import com.zxw.flow.domain.vo.FlowNodesRelationModelPageVO;
import com.zxw.flow.domain.vo.FlowNodesRelationModelVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author Xuewei.Zhang
 * @date 2022/7/6
 */
public interface FlowNodesRelationModelApi {
    @GetMapping("/page")
    BasePageRes<FlowNodesRelationModel> page(FlowNodesRelationModelPageVO flowNodesRelationModelPageVO);

    @GetMapping("/{flowNodesRelationModelId}")
    BaseRes<FlowNodesRelationModel> findFlowNodesRelationModelById(@PathVariable("flowNodesRelationModelId") Long flowNodesRelationModelId);

    @PostMapping("/insert")
    BaseRes<FlowNodesRelationModelVO> insertFlowNodesRelationModel(@RequestBody FlowNodesRelationModelVO flowNodesRelationModelVO);

    @PutMapping("/update/{flowNodesRelationModelId}")
    BaseRes updateFlowNodesRelationModel(@PathVariable("flowNodesRelationModelId") Long flowNodesRelationModelId, @RequestBody FlowNodesRelationModelVO flowNodesRelationModelVO);

    @DeleteMapping("/{flowNodesRelationModelIds}")
    BaseRes deleteFlowNodesRelationModel(@PathVariable("flowNodesRelationModelIds") String flowNodesRelationModelIds);
}
